package com.bbzn.device.client.service;


import com.bbzn.device.client.dao.mqttsub.EmqApiEntity;
import com.bbzn.device.client.dao.mqttsub.EmqApiPublishEntity;

import java.util.List;

/**
 * @Author wulongbo
 * @Date 2021/12/11 9:31
 * @Version 1.0
 */
public interface EmqApiService {

    /**
     * EMQ 指定客户端订阅/取消订阅 topic
     *
     * @param entity
     */
    void subscribe(String url, EmqApiEntity entity);

    /**
     * EMQ 指定客户端批量订阅 / 取消订阅 topic
     *
     * @param entityList
     */
    void subscribeBatch(String url, List<EmqApiEntity> entityList);

    /**
     * EMQ 消息批量发布
     *
     * @param entityList
     */
    void publishBatch(String url, List<EmqApiPublishEntity> entityList);
}
